package com.bskj.kuaifu.bean.vo.resp;

import java.util.List;


/**
 * user/getUnPayDetail 响应VO
 *
 * @author lishi
 * @date 2017-12-11 下午5:58:33
 */
public class UserUnPayDetailRespVo {
    private List<UserParkInfoRespVo> arrearsParkInfoList; //欠费的停车单
    private List<UserParkInfoRespVo> unPayParkInfoList; //未支付的停车单

    public List<UserParkInfoRespVo> getArrearsParkInfoList() {
        return arrearsParkInfoList;
    }

    public void setArrearsParkInfoList(List<UserParkInfoRespVo> arrearsParkInfoList) {
        this.arrearsParkInfoList = arrearsParkInfoList;
    }

    public List<UserParkInfoRespVo> getUnPayParkInfoList() {
        return unPayParkInfoList;
    }

    public void setUnPayParkInfoList(List<UserParkInfoRespVo> unPayParkInfoList) {
        this.unPayParkInfoList = unPayParkInfoList;
    }

    public int getTotalFee() {
        int totalFee = 0;
        if (arrearsParkInfoList != null) {
            for (UserParkInfoRespVo item : arrearsParkInfoList) {
                if (item.getChargeType() == 0) {
                    totalFee += item.getCharge() * 10;
                } else {
                    totalFee += item.getAfterMoney() * -10;
                }
            }
        }
        if (unPayParkInfoList != null) {
            for (UserParkInfoRespVo item : unPayParkInfoList) {
                if (item.getChargeType() == 0) {
                    totalFee += item.getCharge() * 10;
                } else {
                    totalFee += item.getAfterMoney() * -10;
                }
            }
        }
        return totalFee;
    }
}
